import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//引入element-plus   让我们的app能够去使用---唯一页面
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

//引入ElmentPlus图标库相关内容
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//遍历ElementPlusIconsVue 在循环中 我们要use
//先把我们使用app单独定义出来
const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(ElementPlus).use(store).use(router).mount('#app')

